PROJECT(hello)
SET(TARGET demo)
SET(CMAKE_SOURCE_DIR .)
SET(CMAKE_MODULE_PATH ${CMAKE_ROOT}/Modules ${PROJECT_SOURCE_DIR}/modules)
CMAKE_MINIMUM_REQUIRED(VERSION 1.0)
AUX_SOURCE_DIRECTORY(. DIR_SRCS)
AUX_SOURCE_DIRECTORY(src DIR_SRCS)
ADD_EXECUTABLE(${TARGET} ${DIR_SRCS})

FIND_PACKAGE(glib2 REQUIRED)
#message(STATUS "glib2_INCLUDE_DIRS : ${glib2_INCLUDE_DIRS}")
#message(STATUS "glib2_LIBRARIES    : ${glib2_LIBRARIES}")
#message(STATUS "glib2_DEFINITIONS  : ${glib2_DEFINITIONS}")

MARK_AS_ADVANCED(
        glib2_INCLUDE_DIRS
	glib2_LIBRARIES
	)

INCLUDE_DIRECTORIES(${glib2_INCLUDE_DIRS})
TARGET_LINK_LIBRARIES(${TARGET} ${glib2_LIBRARIES})
